package com.application;

import android.app.Application;
import android.content.Context;

/**
 * Created by Administrator on 2016/3/16.
 */
public class BaseApplication extends Application {
    private static Context context;
    @Override
    public void onCreate() {
        super.onCreate();
        context=getApplicationContext();
//        //使用这种方式，设置多个OkHttpClient参数
//        OkHttpUtils.getInstance(new OkHttpClient.Builder().build());
    }

    /**
     *
     * @return 获取Application的context
     */
    public  static Context getContext() {
        return context;
    }
}
